import request from '@/router/axios';

export const getPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillmachinecluster/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const saveOrUpdate = (form) => {
  return request({
    url: '/api/uic-system/fillmachinecluster/submit',
    method: 'post',
    data: {
      ...form
    }
  })
}


export const remove = (id) => {
  return request({
    url: '/api/uic-system/fillmachinecluster/remove',
    method: 'post',
    params: {
      ids: id
    }
  })
}

export const detail = (id) => {
  return request({
    url: '/api/uic-system/fillmachinecluster/detail/'+id,
    method: 'get'
  })
}
